package com.egao.appo.service;

import com.egao.appo.entity.Message;
import com.egao.common.core.damon.results.PageResult2;
import com.egao.common.core.web.JsonResult;
import com.egao.common.system.entity.User;
import com.egao.appo.entity.Appointments;
import net.sf.json.JSONObject;
import org.apache.poi.ss.formula.functions.T;

import java.util.List;
import java.util.Map;

/**
 * 用户资料服务类
 * @author : Doman
 * @date : 2021-07-20 09:09:53
 * @version ：1.0
 */
public interface AppointmentsService /*extends IService<Appointments>*/ {

    /**
     * 分页查询
     */
    //PageResult<Appointments> listPage(PageParam<Appointments> page);

    /**
     * 查询所有
     */
    //List<Appointments> listAll(Map<String, Object> page);

    /**
	 * 分页查询
	 * @param page
	 * @param appointments
	 * @return
	 */
	public JsonResult list(PageResult2<T> page, Appointments appointments, User loginUser) throws Exception;

    /**
	 * 分页查询
	 * @param page
	 * @param appointments
	 * @return
	 */
	public JsonResult list2(PageResult2<T> page, Appointments appointments, User loginUser) throws Exception;

    /**
	 * 分页查询
	 * @param page
	 * @param appointments
	 * @return
	 */
	public JsonResult carousel(PageResult2<T> page, Appointments appointments, User loginUser) throws Exception;

    /**
	 * 分页查询
	 * @return
	 */
	public JsonResult randomInfo() throws Exception;

    /**
	 * 分页查询
	 * @return
	 */
	public JsonResult infoByCode(String code);

	/**
	 * 获取list
	 * @param appointments
	 * @return
	 */
	public JsonResult list(Appointments appointments, User loginUser);

	/**
	 * 根据Id查询
	 * @param appointments
	 * @return
	 */
	public JsonResult getById(Appointments appointments);

	/**
	 * 根据Id查询
	 * @param appoUserId
	 * @return
	 */
	public JsonResult getByAppoUserId(String appoUserId);

	/**
	 * 保存
	 * @param appointments
	 * @param loginUser
	 * @return
	 */
	public JsonResult save(Appointments appointments, User loginUser);

	/**
	 * 修改
	 * @param appointments
	 * @param loginUser
	 * @return
	 */
	public JsonResult update(Appointments appointments, User loginUser);

	/**
	 * 修改
	 * @param appointments
	 * @param loginUser
	 * @return
	 */
	public JsonResult imPortUser(Appointments appointments, User loginUser);

	/**
	 * 修改
	 * @param appointments
	 * @param loginUser
	 * @return
	 */
	public JsonResult updateExamined(Appointments appointments, Message message, User loginUser);

	/**
	 * 删除
	 * @param appointments
	 * @param loginUser
	 * @return
	 */
	public JsonResult remove(Appointments appointments, User loginUser);
}
